﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace WebApplication1.Controllers
{
    public class IndexController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }

        public IActionResult Welcome(string name,int num=1)
        {
            ViewBag.name = name;
            ViewBag.num = num;
            return View();
        }

        //public string Index()
        //{
        //    return "这是我的第一个HalloWord";
        //}

        //public string Welcome(string name,int num=1)
        //{
        //    return "这是我的欢迎内容，很高兴认识你："+name+"，您的编号是："+num;
        //}
    }
}